<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/WEB-INF/views/wx/include/head.jsp" %>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
		<a href="${ctxWx}/pu/orders/orderList?orderstatus=${orders.orderstatus }" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">${orders.ordername }</h1>
	</header>
	<div class="mui-content">
		<div class="mui-input-group">
			<div class="mui-input-row">
				<label>订单名称:</label>
				<input type="text" value="${orders.ordername }" readonly/>
			</div>
			<div class="mui-input-row">
				<label>订单日期:</label>
				<input type="text" value="<fmt:formatDate value="${orders.createDate }" pattern="yyyy-MM-dd HH:mm"/>" readonly>
			</div>
			<div class="mui-input-row">
				<label>订单状态:</label>
				<c:if test="${orders.orderstatus == TORDERS_STATUS_PAY}"><input type="text" value="已支付" readonly/></c:if>
				<c:if test="${orders.orderstatus == TORDERS_STATUS_NO_PAY}"><input type="text" value="未支付" readonly/></c:if>
				<c:if test="${orders.orderstatus == TORDERS_STATUS_CANCEL}"><input type="text" value="已作废" readonly/>	</c:if>
				<c:if test="${orders.orderstatus == TORDERS_STATUS_BACK && orders.settlereason == '5'}">
					<input type="text" value="已取消（更换车队）" readonly/>
				</c:if>
				<c:if test="${orders.orderstatus == TORDERS_STATUS_BACK && orders.settlereason != '5'}">
					<input type="text" value="已取消" readonly/>
				</c:if>
			</div>
			<div class="mui-input-row">
				<label>出发时间:</label>
				<input type="text" value="<fmt:formatDate value="${orders.departdate }" pattern="yyyy-MM-dd HH:mm"/>" readonly>
			</div>
			<c:if test="${orders.ordertype ne ORDER_TYPE_RENTPRODUCT_AIRPLANE and orders.ordertype ne ORDER_TYPE_RENTPRODUCT_TRAIN }">
			<div class="mui-input-row">	
				<label>包车天数:</label>
				<input type="text" value="${orders.bookingdays }天" readonly/>
			</div>
			</c:if>
			<div class="mui-input-row">	
				<label>车辆数:</label>
				<input type="text" value="${orders.purchasenum }辆" readonly/>
			</div>	
			<div class="mui-input-row">	
				<label>车型:</label>
				<c:choose>
				<c:when test="${not empty react }">
					<input type="text"  value="${orders.cartype.typename}(${react.remarks})" readonly/>
				</c:when>
				<c:otherwise>
					<input type="text"  value="${orders.cartype.typename}" readonly/>
				</c:otherwise>
				</c:choose>
			</div>	
			<div class="mui-input-row">	
				<label>品牌:</label>
				<input type="text" value="${orders.cartype.typedesc }" readonly/>
			</div>
			<c:if test="${orders.ordertype eq ORDER_TYPE_RENTPRODUCT_AIRPLANE}">
				<c:set var="boardName" value="接送机地点"></c:set>
			</c:if>
			<c:if test="${orders.ordertype eq ORDER_TYPE_RENTPRODUCT_TRAIN}">
				<c:set var="boardName" value="接送火车地点"></c:set>
			</c:if>		
			<div class="mui-input-row">	
				<label>${not empty boardName?boardName:'上车地点' }:</label>
				<input type="text" value="${orders.boardaddr }" readonly/>
			</div>
			<div class="mui-input-row">	
				<label>联系人姓名:</label>
				<input type="text" value="${orders.contacts }" readonly/>
			</div>
			<div class="mui-input-row">	
				<label>联系人电话:</label>
				<input type="text" value="${orders.payertel }" readonly/>
			</div>
			<div class="mui-input-row">	
				<label>行程备注:</label>
				<input type="text" value="${orders.remarks }" readonly/>
			</div>		
		</div>
	</div>
	<%@ include file="/WEB-INF/views/wx/include/script.jsp"%>
</body>
</html>